package cn.edu.cqvie.netty.protobuf;

import com.google.protobuf.InvalidProtocolBufferException;

public class ProtoBufTest {

    public static void main(String[] args) throws InvalidProtocolBufferException {

//        DataInfo.Student student =
//                DataInfo.Student.newBuilder().setName("张三").setAge(20).setAddress("zhangsan@qq.com").build();
//
//        byte[] student2ByteArr = student.toByteArray();
//
//        DataInfo.Student student1 = DataInfo.Student.parseFrom(student2ByteArr);
//
//        System.out.println(student);
//        System.out.println(student.getName());
//        System.out.println(student.getAge());
//        System.out.println(student.getAddress());


    }
}
